package com.flashcash.solu.view.fragment;

import android.util.Pair;

import com.flashcash.solu.app.base.BaseFragmentView;
import com.flashcash.solu.bean.LatestLoanAppBean;
import com.flashcash.kotlin.data.BankBean;
import com.flashcash.kotlin.data.LoaningAmoutBean;
import com.flashcash.kotlin.data.UserBankInfo;
import com.flashcash.kotlin.data.WithdrawChannel;

import java.util.List;

/**
 * @作者:My
 * @创建日期: 2017/6/21 15:39
 * @描述:${TODO}
 * @更新者:${Author}$
 * @更新时间:${Date}$
 * @更新描述:${TODO}
 */

public interface LoaningFraView extends BaseFragmentView {
    void resetButton();

    void onApplyLoanSuccess();

    void onAmountObtain(Pair<Pair<LatestLoanAppBean, LoaningAmoutBean>, UserBankInfo> loaningAmoutBean);

    void addBankError(Throwable throwable);

    void addBankSuccess();

    void onBankRequestError(Throwable e);

    void onBankRequestSuccess(String type, List<BankBean> bankBeans);

    void onAmountObtainError(Throwable throwable);

    void onWithdrawChannelRequestSuccess(List<WithdrawChannel> withdrawChannels);

    void onWithdrawChnanleRequestError(Throwable e);

    void setWithdrawChannels(List<WithdrawChannel> withdrawChannels);
}
